package com.ys;

import java.util.List;

/**
 * @program: note
 * @description:
 * @author:
 * @create 2020-06-11 22:07
 **/
public class ConsumeRecordServiceImpl implements ConsumeRecordService {

    private ConsumeRecordDao consumeRecordDao = new ConsumeRecordDaoImpl();

    @Override
    public List<ConsumeRecord> getAll() {
        return consumeRecordDao.getAll();
    }

    @Override
    public List<ConsumeRecord> getAllByType(String type) {
        return consumeRecordDao.getAllByType(type);
    }

    @Override
    public void save(ConsumeRecord record) {
        consumeRecordDao.save(record);
    }

    @Override
    public List<ConsumeRecord> getAllBetweenTime(String startTime, String endTime) {
        return consumeRecordDao.getAllBetweenTime(startTime, endTime);
    }
}
